package copyengine.ui.component.button.animation.pc
{

	import flash.display.DisplayObject;
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	import copyengine.ui.component.button.animation.ICESelectedButtonAnimation;

	public final class CESelecteButtonLabelFrameAnimation implements ICESelectedButtonAnimation
	{
		private var buttonBgMc:MovieClip;

		public function CESelecteButtonLabelFrameAnimation()
		{
		}

		public function onSelectedChange(isSelected:Boolean):void
		{
			var key:String = isSelected == true ? "s" : "unS";
			buttonBgMc.gotoAndStop(key);
		}

		public function setTarget(_buttonBg:DisplayObject):void
		{
			buttonBgMc = (_buttonBg as MovieClip)["bgMc"];

			onSelectedChange(false);
		}

		public function dispose():void
		{
		}

		public function onMouseUp(e:MouseEvent):void
		{
		}

		public function onMouseDown(e:MouseEvent):void
		{
		}

		public function onMouseRollOver(e:MouseEvent):void
		{
		}

		public function onMouseRollOut(e:MouseEvent):void
		{
		}
	}
}
